package com.shgsh.server.repository;

import com.lovver.ssdbj.pool.SSDBDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Properties;

/**
 * Created by jessy on 2015/8/15.
 */
public class SSDBDataSourceBuilder {
    static Logger logger = LoggerFactory.getLogger(SSDBDataSourceBuilder.class);
    static SSDBDataSource ds = null;
    static {
        Properties info = new Properties();
        info.setProperty("password", "ddd");
        info.setProperty("loginTimeout", "300");
        info.setProperty("tcpKeepAlive", "true");
        info.setProperty("protocolName", "ssdb");
        info.setProperty("protocolVersion", "1.0");
        ds = new SSDBDataSource("112.74.111.183", 8888, null, info);
        logger.debug("datasource builder success");
    }

}
